package com.bondex.charter.schedule;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 业务通用定时任务
 * Created by JD on 2019/10/23.
 */
@Component
@Configuration
@EnableScheduling
public class BizTask {

	/**
	 * 发送报名邮件
	 * 从9点到17点，每半小时发送一次邮件
	 *
	 * [秒] [分] [小时] [日] [月] [周] [年]
	 */
	@Scheduled(cron = "0 0/30 9-17 * * ?")
	public void salonSendMailToAdmin() {
		try {

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
